package com.gxuwz.zhangjiahui.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gxuwz.zhangjiahui.entity.Dep;
import com.gxuwz.zhangjiahui.entity.Student;
import com.gxuwz.zhangjiahui.mapper.DepMapper;
import com.gxuwz.zhangjiahui.mapper.StudentMapper;
import com.gxuwz.zhangjiahui.service.IDepService;
import com.gxuwz.zhangjiahui.service.IStudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author zhangjiahui
 * @since 2021-06-20
 */
@Service
public class DepServiceImpl extends ServiceImpl<DepMapper, Dep> implements IDepService {

    @Autowired
    private DepMapper depMapper;

    @Override
    public Dep findDepById(Dep dep) {
        return depMapper.findDepById(dep);
    }

    @Override
    public List<Dep> findDepAll() {
        return depMapper.findDepAll();
    }

    @Override
    public IPage<Dep> selectDepPage(Page<Dep> page, Wrapper<Dep> wrapper) {
        return depMapper.selectDepPage(page, wrapper);
    }

    @Override
    public void addDep(Dep dep) {
        depMapper.addDep(dep);
    }

    @Override
    public void updateDepById(Dep dep) {
        depMapper.updateDepById(dep);
    }

    @Override
    public void deleteDepById(Dep dep) {
        depMapper.deleteDepById(dep);
    }
}
